import {OnInit, Component} from "@angular/core";
import {ActivatedRoute} from "@angular/router";

@Component({
  templateUrl: './crisis-detail.component.html'
})
export class CrisisDetailComponent implements OnInit {
  id: number

  constructor(private route: ActivatedRoute) {
  }

  ngOnInit(): void {
    this.id = parseInt(this.route.snapshot.params['id'], 10);
  }
}
